//
//  UIView+RoundCorner.m
//  ITC_iOS
//
//  Created by Benz.L on 12/09/2018.
//  Copyright © 2018 Benz.L. All rights reserved.
//

#import "UIView+RoundCorner.h"

@implementation UIView (RoundConor)

- (void)roundcorner:(UIRectCorner)rectCorner radii:(CGFloat)radii {
    UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:self.bounds byRoundingCorners:UIRectCornerTopLeft|UIRectCornerTopRight cornerRadii:(CGSize){radii,radii}];
    CAShapeLayer *layer = [CAShapeLayer layer];
    layer.frame = self.bounds;
    layer.path = path.CGPath;
    layer.fillColor = [UIColor blackColor].CGColor;
    self.layer.mask = layer;
}

@end
